package com.dfiles.bean;

import java.io.Serializable;

import android.content.Intent;
import android.graphics.drawable.Drawable;

import com.dfiles.provider.FileTypeHelper.FileTypeAll;

/**
 * 文件实体类
 */
public class DFile implements Serializable {
	private static final long serialVersionUID = -5854596784292766173L;
	public long dbId;// 数据库中的id
	public String path;// 路径
	public FileTypeAll type;// 文件类型FileUtils
	public String name;// 文件名
	public long size;// 文件大小
	public long lastModify;// 上次修改
	public boolean isFolder;// 是否文件夹
	public int childs;// 子文件数量

	public int imageResource;// 图标路径
	public String packageName;// 包名(用于应用程序)
	public String activityName;// 启动activity名
	public boolean choosed;
	public Intent intent;// 快捷方式使用
	public String intentString;

	public boolean canRead;
	public boolean canWrite;
	public boolean isHidden;
	public int count;
	public String author;

	public DFile() {
	}

	public DFile(String path, int type, String name, String packageName, String className) {
		this.path = path;
		this.type = FileTypeAll.valueOf(type);
		this.name = name;
		this.packageName = packageName;
		this.activityName = className;
	}

}
